package com.cloudbroker.bcs.platform.ltb.middle.service.impl;

import com.cloudbroker.bcs.common.dao.base.DAOBase;
import com.cloudbroker.bcs.platform.ltb.middle.dao.credits.CreditsRuleDAO;
import com.cloudbroker.bcs.platform.ltb.middle.entity.credits.CreditsRule;
import com.cloudbroker.bcs.platform.ltb.middle.service.CreditsRuleService;
import com.cloudbroker.bcs.platform.ltb.middle.service.base.MycatServiceImplBase;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by lili19289 on 2016/11/9.
 */
@Service
public class CreditsRuleServiceImpl extends MycatServiceImplBase implements CreditsRuleService {

    @Resource
    private CreditsRuleDAO creditsRuleDAO;

    @Override
    protected DAOBase getDAO() {
        return creditsRuleDAO;
    }

    public CreditsRule findByBusinessType(CreditsRule rule){
        return creditsRuleDAO.findByBusinessType(rule);
    }




}
